/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.tnmk.worktime.gui.tbl;

import java.awt.event.ActionListener;
import javax.swing.JButton;
import org.apache.log4j.Logger;

/**
 *
 * @author tnmkhoi
 */
public class ButtonEditor extends BaseCellEditor<JButton> {

  private static final Logger log = Logger.getLogger(ButtonEditor.class);

  public ButtonEditor(String label) {
    super.comp = new JButton();
    ButtonFactory.decorateCellButtonByType(super.comp, label);
  }

  public void setButtonAction(ActionListener al) {
    super.comp.addActionListener(al);
  }

}
